package com.atguigu.jxc.dao;


import com.atguigu.jxc.entity.DamageList;
import com.atguigu.jxc.entity.DamageListGoods;
import com.atguigu.jxc.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DamageListGoodsDao {

    // 保存报损单信息
    Integer saveDamageList(DamageList damageList);

    // 保存报损单商品信息
    Integer saveDamageListGoods(DamageListGoods damageListGood);

    //报损单查询
    List<DamageList> getDamageList(@Param("sTime") String sTime, @Param("eTime") String eTime);

    //查询报损单商品信息
    List<DamageListGoods> getDamageGoodsList(@Param("damageListId") Integer damageListId);
}
